package com.wanlian.netty.msg.Device;

import com.wanlian.File.NetFileInfo;
import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.MsgType;

public class FileUploadMsg extends BaseMsg {
    private NetFileInfo netFileInfo;

    public FileUploadMsg(){
        this.setType(MsgType.DEVICE_FILE_UPLOAD_REQ);
    }

    public NetFileInfo getNetFileInfo() {
        return netFileInfo;
    }

    public void setNetFileInfo(NetFileInfo netFileInfo) {
        this.netFileInfo = netFileInfo;
        this.setContent(JsonStringUtil.writeValueAsString(netFileInfo));
    }
}
